home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / README.verify < prev    next >
Encoding:
Text File  |  2000-06-04  |  2.5 KB  |  82 lines

  1. Mini-Howto for verifying a selfmade CD
  2.  
  3. 1) verifying the data layer
  4.  
  5.     To verify if all data on the disk can be read,
  6.     use SCSI verify. This can be done with the
  7.     sformat utility.
  8.  
  9.     use: sformat -verify [target] [lun] [scsibus]
  10.  
  11.     If the CD-R device is connected to target 2 on SCSI bus 0
  12.     sformat -verify 2  0
  13.  
  14.     sformat can be found on ftp://ftp.fokus.gmd.de/pub/unix/sformat
  15.  
  16.     NOTE: Not all CD-ROm drives support verifying
  17.     NOTE: All TAO tracks end in 2 unreadable run-out sectors
  18.  
  19. 2) verifying the filesystem layer
  20.  
  21.     A quick check is to mount the CD and to use star to read
  22.     all files on the filesystem.
  23.  
  24.     mount -r /dev/cdrom /cdrom      (modify for your OS)
  25.     cd /cdrom
  26.     star -cPM . >/dev/null
  27.  
  28.     If no errors can be found, all files are readable.
  29.  
  30.     star can be found on ftp://ftp.fokus.gmd.de/pub/unix/star
  31.  
  32.  
  33.     You also may want to compare the filesystem on the CD
  34.     with the original data. This can be done with star too.
  35.  
  36.  
  37.     (cd /master_for_cd; star -cPM .)|(cd /cdrom; star -diff -v)
  38.  
  39. 2a) verifying the iso image before creating the CD
  40.  
  41.     You may check the filesystem image by mounting it with my 
  42.     "fbk" on Solaris or the loopback driver on Linux.
  43.  
  44.     On Linux type:
  45.         mount isoimage.raw -r -t iso9660 -o loop /mnt
  46.  
  47.     On SunOS type:
  48.         mount -r -F fbk -o type=hsfs /dev/fbk0:isoimage.raw /mnt
  49.  
  50. For Solaris 8 and later you may also use the Sun lofi driver (see README.sun-lofi)
  51.  
  52.     The check the filesystem with:
  53.  
  54.         (cd /master_for_cd; star -cPM .)|(cd /mnt; star -diff -v)
  55.  
  56.  
  57. When doing this you have to know about the bugs in Linux/Solaris
  58.  
  59. Mkisofs before 1.10 and Linux have a bug with timezones.
  60. If you are using mkisofs-1.10 and newer on Linux, you need to disable
  61. comparing times:
  62.  
  63. (cd /master_for_cd; star -cPM .)|(cd /cdrom; star -diff -v diffopts=!times)
  64.  
  65. The same is needed if you are using mkisofs pre-1.10 on Solaris
  66.  
  67. Solaris has a bug with hardlinks. It generates different inode numbers
  68. for the hardlinks to a file. This makes it impossible for star to 
  69. check hard links. Use
  70.  
  71. (cd /master_for_cd; star -cPM .)|(cd /cdrom; star -diff -v diffopts=!hardlink)
  72.  
  73. in this case.
  74.  
  75. NOTE: Some operating systems have a read ahead bug that causes I/O errors for
  76. the last file(s) on a CD. This seems at least to be true for all Linux versions
  77. and for Solaris 7 FCS. For Solaris 7 there is a patch (107465-02) that you should
  78. install. This I/O error problem does not occur with DAO disks and with TAO disks
  79. that have been written with cdrecord -pad.
  80.  
  81. Joerg Schilling
  82.